package com.lh.eemsserver.Service.ServiceImple;

import com.lh.eemsserver.Mapper.DirectorMapper;
import com.lh.eemsserver.Service.DirectorService;
import com.lh.eemsserver.po.Procedure;
import com.lh.eemsserver.po.Report;
import com.lh.eemsserver.po.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DirectorServiceImple implements DirectorService {
    @Autowired
    private DirectorMapper directorMapper;


    @Override
    public List<Report> listAllReport() {
        return directorMapper.listAllReport();
    }

    @Override
    public List<Procedure> getProcedure(Report report) {
        return directorMapper.getProcedure(report);
    }

    @Override
    public int setUpdaterInfo(Report report) {
        return directorMapper.setUpdaterInfo(report);
    }

    @Override
    public User getUserName(User user) {
        return directorMapper.getUserName(user);
    }

    @Override
    public User getUserInfo(User user) {
        return directorMapper.getUserInfo(user);
    }

    @Override
    public int renewUserInfo(User user) {
        return directorMapper.renewUserInfo(user);
    }

    @Override
    public int getReportNum() {
        return directorMapper.getReportNum();
    }

    @Override
    public List<Report> listAllReportExceptApprovalPending() {
        return directorMapper.listAllReportExceptApprovalPending();
    }
    @Override
    public int getProcedureNum(Report report){
        return directorMapper.getProcedureNum(report);
    }
    @Override
    public Report getReportById(Report report){
        return directorMapper.getReportById(report);
    }
    @Override
    public int renewreportState(Report report){
        return directorMapper.renewreportState(report);
    }
}
